[automerger] Fix crash during cursor moving on BiDi text am: 82c84d5f am: 12baaa2b am: 99e3f649 am: a959ee22 am: 8f85f5ff Change-Id: If854f61c2516a61ac36426c10eafd30bf638e919