Fixed error with empty date

There was an empty date that was causing all entries in the directory to
fail. Added a try/except to handle empty dates