XHR, HTML4: Make sure we survive invalid json response.