Fixed NPE on plugin load