Fix JS error in ce.LanguageAnnotation when dir is set but lang isn't

Bug: 69955
Change-Id: Ib7330af9007e95fcee3085e21d1f883d0005dba3