Fix JSON parsing of body "null" response

If response body contains JSON response "null", JsonHandler throws an exception "Unable to parse response as JSON", which is not correct in that case.

I wrote a test and fixed the issue.