Fix lang_class

Consideration for argument of nil.