Merge "Validate index for cursor on BiDi text"