fix for undefined function. onInstall now only gets called when plugin is also Uninstallable.