Fix getUTCDate when datepicker has no selected date

This PR fixes #923  (or should fix)