exiting when invalid value is passed in as a date

@triblondon @AlbertoElias 

addresses https://github.com/Financial-Times/o-date/issues/19
and if not, does it return undefined?