Fix TypeError when there was no response body.
Merge pull request #17 from alimony/patch-3

Fix TypeError when there was no response body.