Fixed number format exception in DatePicker when date is deselected