Added support for comparing Date's to empty strings/undefined.