This fixes the second problem that I found in T91838#1246902.
The problem was that the mesh in the output of the Object Info node was not owned by the geometry set (it indirectly calls add_final_mesh_as_geometry_component).
This lead to some other issues down the line.