Fixed an issue with empty string comparison on git diff errors.