perf pmu: Fix check for unset alias->unit array