Tree Control: Add/Remove to Empty

In this code a node is added and then removed from the tree making it empty. This example is working if its an empty page.