Make split_to_comparable_groups(..) more robust

Allow keys to be missing from one of the dicts.