[PATCH 6.6 061/150] drm/amdgpu: Add NULL checks for function pointers