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

The check if a polyline is in a polygon is needed within the SimplePolygonTree.
you may need to check if `s` is empty, though I am not sure if that is logically possible or not.