XMLHttpRequest: ensure that response getters properly handle error cases (see bug 125840)