Fixed handling of 0000-00-00 dates.