Fixes AttributeError thrown when text file is empty.

As the file has no contents, what `git diff --cached file` returns doesn't match textFileRe, and throws an AttributeError on the group call.