Fix empty files diff and add test

Fixes issue https://github.com/mojombo/grit/issues/181

And also adds a unit test to cover the case.