[PATCH openEuler-5.10 66/66] perf script: Check session->header.env.arch before using it