[PATCH 6.1 042/150] drm/amd/display: Add null checker before passing variables