Fix NPE in DataTreeCandidates