removeComponent of LinearRing removes too much points

The function should not be allowed to remove any points from a LinearRing when there are only 4 (3 different last one copy of first) left.