Update XMLHttpRequest.cs

If using the BrowserHTTP client a call to response.Headers throws an exception, so the previous code was causing and catching an exception every time a chunk was uploaded.