IE11 reports object on window.Custom

IE11 seems to be reporting an object on window.CustomEvent causing the polyfill to fail.