Tree.Node#isRoot() now returns false on destroyed nodes.

Previously it caused an exception, which wasn't very useful.
Build tree.