RTL fixes for Special:Magic

Change-Id: I732461c5eff32d94b85f114ee84e80fea3ca9833