Fix crash when opening ToC in RTL environment.

Bug: 66794
Change-Id: I0b436fd769fcc20657d49926d490543e3bd25217