check-templated-code-snippets.py throws FileNotFoundError when a file is (intentionally) deleted

This script should not report an error when a file is deleted in a commit.