comps: adapt to the latest libcomps that correctly throws KeyError in dict[].