Fix an exception when invalid characters like '>' were in the filename/content or extension fields and no files were found.