[PATCH 6.6 408/638] perf expr: Fix "has_event" function for metric style events