Fix topology lines geometries join in some situations (ref #722)