Fix #1515: Ensure polygons are closed

Fix #1515 


Test [here](http://mf-geoadmin3.dev.bgdi.ch/fix_kml/?X=181276.20&Y=575040.77&zoom=6&lang=fr&topic=ech&bgLayer=voidLayer)