nearest_tree_to should return an empty tree object rather than nil object