perf/core: Fix crash when using HW tracing kernel filters