MDL-66119 core: Add check for uninstalling plugins from the admin gui