Fix to handle non-XML AJAX requests.