[PATCH 5.19 157/365] perf parse-events: Fix segfault when event parser gets an error