make sure pluginAttrs is a Map before trying to access keys