Fixed null dates when indexing.
Fixed null date when passing to Database.getModifiedDocuments()