Only assign Promise polyfill to window.Promise when it is not defined