Fixes AttributeError: [some plugin] object has no attribute 'cms_plugin_ptr'
Merge pull request #2895 from mkoistinen/further_fix_for_2868

Fixes AttributeError: [some plugin] object has no attribute 'cms_plugin_ptr'