fixing crash if language in markup unknown