Checking for valid LineString in profile (#611)

https://github.com/geoadmin/mf-chsdi3/issues/611