[PATCH OLK-6.6 383/470] drm/amdgpu: Add NULL checks for function pointers