bug fix: should have been indexing by node rather than node.taxon because many internal nodes have None as their taxon