Fix the datepicker after an error. refs #5390