Fix some XHR warnings
auto merge of #2469 : Manishearth/servo/xhrwarnings, r=pcwalton