Update PATCH/xhr check so that IE9 works

Fixes #2476