[PATCH 5.10 20/84] drm/amd/display: check TG is non-null before checking if enabled