Changed root creation for empty tree.