Fix a variable-clobbering problem when core.js is loaded after package.js in a browser, making the Package API vanish.