Fixes traceback on file deletion

If Python-specific checks were trigger for a file that was deleted and
appeared first in the diff, a traceback would occur. If it didn't appear
first, reported information would be wrong anyway.