Setting resp.body.size to 0 if there is no response body

If the response does not contain a body, it was throwing an undefined method error. This pull request checks to see if the response body is nil, and if so sets size to 0.