fix empty response bug in JsonHttpResponseHandler

Fixes a cast exception on line 143, when response is empty.