Fix incorrect (and potentially undefined) processing when removing an effect plugin.