make sure that we don't try to access an already deleted files, fixes some file source not found warnings