[PATCH 5.4 264/314] perf stat: Fix NULL pointer dereference