Merge pull request #106 from mxia/development

Fixing the git unit test.
When we have an empty error body but "bad" response code, handle that rather than throwing an NPE