Protect from possible seg. fault Signed-off-by: David Galiffi <David.Galiffi@amd.com> [ROCm/rocprofiler-systems commit: 59e7b4b501]
59e7b4b501