[GeoLib] Corrected implementation of check if Polyline is in Polygon.

The check if a polyline is in a polygon is needed within the SimplePolygonTree.
This check is needed. The segment can be in the polygon without intersecting any line segment of the border (i.e. ```s.empty() == true```).