Ensure that XHR is returned when JSON decode fails