[PATCH 6.10 106/263] drm/amd/display: Add null checker before passing variables