Fixed error handling on empty 'datetime' field.