git-apply: fix error handling for nonexistent files