Allowed $plugin_class to actually be a valid class in create_plugin()

Bit daft I missed this to start with!