Small change in the intersection method of a polygon

See #7429