make closest_point work when tree is empty