Make 'locale' attribute of InputMethodContext non-nullable.