Adapt to new browser behavior

XMLHttpRequest.response is now undefined instead of empty when the
request has been cancelled.