Fixed `core.then` for browsers.