fix #201 NullPointerException from BranchTreeNode.getChildCount()