fix #365; always set lang and lang_id to null when lang not recognized