fix httpStatus being resolved when response is undefined
fix httpStatus being resolved when response is undefined

matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk