do not convert multiline to multipolygon if one of the part failed, also consider case of 3 vertices line with first and last vertex identical