Handling empty string values

This PR correct "Uncaught TypeError: Cannot call method 'toDate' of null" error in case of empty values in input holder associated to calendar