[PATCH 5.2 125/215] perf map: Fix potential NULL pointer dereference found by smatch tool