AMDGPU: Fix crash with dispatch.ptr intrinsic with non-HSA target