SONAR-5827 Fix corner cases with highligthing offset conversion