Handle empty response content in MonkeyRestClient.

This pull request adds logic to handle empty content responses such as 413.