Catch datepicker exception