Added restriction when moving a node and the polygon becomes invalid