Fix critical error in XMLHTTPRequest send()

There is critical Exception (NS_ERROR_XPC_NOT_ENOUGH_ARGS) in old versions of Firefox (v. 2.0 was checked). Also there could be the same problems in other old browsers