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