Handle exceptions from JS_ParseJSON in XMLHttpRequest.response.
Merge pull request #2817 from Ms2ger/xhr-response-json

Handle exceptions from JS_ParseJSON in XMLHttpRequest.response.