Fixed an exception raised with empty json requests.

Empty body requests with ‘Content-Type=application/json’ raise the exception “JSON string is empty.” when it tries to parse the result. 

This is a huge issue with GET requests that use the content type to return either a html or json response.