[disjoint] fix bug in segment-box disjointness check (algorithm
is not always working properly when segment degenerates to a point,
or when segment was parallel to the y-axis)