Fix in case value is not set yet (0000-00-00 00:00:00)