Only block language change if dir hasn't changed

Otherwise you can't change the direction unless the language code is
valid.

Change-Id: I7465bef78c37b86c766379692c2e146759536586