Fixed an issue with XMLHttpRequest on Firefox where an error would be raised because the requestType was set prior to opening the request.