Fix typo in XHR detection code.