Fix formatting of bad dates from external storages

When getting a bad mtime for a file (such as for FTP directories), the Modified time will be replaced with `?` and the tooltip will contain 'Unable to determine date'. Fixes #6395