[PATCH 030/169] drm/amdgpu: avoid dereferencing a NULL pointer