Properly skip uploaded files for nodes that were not imported and any
files that no longer exist in the files table