core/extension: ensure we properly set the label if main extension does not have labels or it doesn't have the configuration at all.