Fix error on API calls returning empty body.
Merge pull request #42 from danielroseman/master

Fix error on API calls returning empty body.