Handle empty date string when moment is defined (onChange)