Handle exceptions from JS_ParseJSON in XMLHttpRequest.response.