#8725R: fix invalid LineStrings