SWDEV-336024 - Add a check for nullptr in HeapBuffer()
SWDEV-336024 - Add a check for nullptr in HeapBuffer()

Change-Id: Ib8a3f2757c8600c4bd5bed417b230a60d4cf3d42

ROCm-Developer-Tools/ROCclr,ROCm-Developer-Tools/ROCclr