only insert pending deletion if we don’t get a status code

in the event of an erroneous status, it probably means the file
is already deleted or some other info is wrong. there should not
be any reason to keep retrying to delete that file (because it will
probably continue to fail every time)