Condition is changed to avoid

 PHP Fatal error:  Call to a member function format() on a non-object in /var/www/up.local/vendor/doctrine/dbal/lib/Doctrine/DBAL/Types/DateType.php on line 53

when called from

 /var/www/up.local/vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php:114

and $value == FALSE.

Signed-off-by: Aleksei Sitnikov <alsi.0669@gmail.com>