check response and don't handle empty string with getResponseJson.

I was working with API that returns empty string on success for DELETE.
parse-response failed if the response string is empty, so I needed this fix.