Fixed pos-over-poly case for finding nearest polygon