Fix NPEs being thrown on tree selection in the reset dialog