Fixed date truncated issue

If getLastModified fails, it returns 0. MySQL does not like 0 dates.