[PATCH 5.7 384/477] perf stat: Fix NULL pointer dereference