fix: wrap XMLHttpRequest when we cant patch protos