Make diff filter properly single-line hunk headers.

At least `git diff` generates a hunk header that looks like
`@@ -0,0 +1 @@` when the resulting file has a single line.
This makes `FilterByPatch` properly handle that.