fix startPos calculation for applyCMtoShareJs GitOrigin-RevId: 642dc1fd2d7b2a1b34031900c137ffc10f94ddeb