Adds another safeguard

Adds a safeguard for `plugin.PluginParam` because it can be undefined.