fixed #849 (PluginInfrastructure attempts to disable a plugin multiple times if multiple dependencies are missing)