Fix regression in lineNumberWithOffsetFor