Embedvanilla onhashchange workaround for buggy Internet Explorer IE7 document mode

When Vanilla is embedded in a site where IE8 runs in IE7 compatibility mode, IE8 incorrectly reports that onhashchange is available when in fact the event is never fired.