Fix nil dates in email notifications