Safeguard for plugin.PluginParam

Adds a safeguard in case plugin.PluginParam is undefined.