(shr-overlays-in-region): Compute overlay positions correctly.