Fixed a bug in previous commit.

Some of the internal tree nodes do not have names.
Tested with anolis tree.