Fix crash when selecting a date of birth for a new patient.