Handle empty trees.