Fix NPE for plugin manager. Thanks, Raino