check that a lastmod date was sent before trying to convert it to a date