[PATCH 5.4 051/270] drm/amdgpu: avoid dereferencing a NULL pointer