Polyline clipping issue

Fix polyline near plane clipping issue #728.