Fixes an issue occurring with orphaned CMSPlugins.