Fixes: [38419] Avoid crash when trying to bind mshtml event scripts to window
