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