[PATCH 5.2 130/215] perf intel-bts: Fix potential NULL pointer dereference found by the smatch tool