perf script: Fix crash with printing mixed trace point and other events