JAL-2674 more adjustments to locateVisibleBoundsOfSequence