Fix issue with null values passed to DateTime columns