Update PATCH/xhr check so that IE9 works

Fixes #2476
Merge pull request #2550 from jerryorr/master

Update PATCH/xhr check so that IE9 works