[PATCH 6.4 054/227] drm/amd/display: check TG is non-null before checking if enabled