CVE-2024-42081 drm/xe/xe_devcoredump: Check NULL before assignments