Patch fix add charm

Fixes (f6) add unit dialog to properly add charms via the charm plugins.
I'm confused about this change - why is this in here if the code it's testing didn't change?