PluginManager: Fix NullPointerException