Fixes #11151, #13388. Minor refactor of response conversion and when/where
 responseXXX fields are set on the jqXHR. Close gh-1164.

(Cherry-picked from 69b3d5ce0f081d3f113b2917495f35df160f8522)