fix #24484 - bad access in SLine::linePos

Fix for bad access in SLine::linePos due to text line being anchored to a multi-measure rest.