Clean cache when uninstalling module

When resetting a module the installation fails because isInstalled() still return true because of the 'getModuleIdByName_' cache.