perf metricgroup: Use early return in add_metric