Fixed bug in spline_find_segment_bisect() which would cause the last spline segment to be ignored