DDI-C template: variable categories are invalid if variable.codelist_codes[n].code is None
Created by: yytosi
This is possible due to the relaxation of document store schema.
Note that it is currently impossible to match catgrys if code is None. It will lead to misleading representation of localized catgry labls.