Polyfill for missing Event#stopImmediatePropagation support on older browsers.