Manually apply JQuery fix for XSS bug (#9521)

This addresses the XSS issue reported in JQuery bug #9521 and fixed in
https://github.com/jquery/jquery/commit/db9e023e62c1ff5d8f21ed9868ab6878da2005e9.