Fix for null date/time values
Fixed PHP 5.2 conversion problem