Fix REGRESSION(r27885): Installer hits assertion failure in JavaScriptGlue.