Fix empty files diff and add test

Integrate fix of https://github.com/mojombo/grit/issues/181