[PATCH 5.15 381/484] drm/amd/display: Add null checker before passing variables