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