Fixes crash when the language module wasn't enabled.

Fixes a crash when the language module wasn't enabled.