Fixed situation when point closest to zero index of polyline, but return "closest" with index 1.
Fixed situation when point closest to zero index of polyline, but return "closest" with index 1.

jkokh/Platform,EGreg/Platform,Qbix/Platform,jkokh/Platform,AndreyTepaykin/Platform,Qbix/Platform,jkokh/Platform,Qbix/Platform,jkokh/Platform,EGreg/Platform,AndreyTepaykin/Platform,EGreg/Platform,AndreyTepaykin/Platform,AndreyTepaykin/Platform,Qbix/Platform,EGreg/Platform