Bug #1756: partially fix datepicker bug "$digest already in progress"