[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7 am: b7a2d47e skipped: 723f13d0 am: 04c7154f Change-Id: Ic801a54fa6cb048ddf911c7b315849ab40bd7a52