added some null checks to prevent NPEs
surrounded loadSkillTree with try&catch to prevent the plugin from crashing on startup