BUGFIX: When a date was 0000-00-00, the script failed