[PATCH 5.4 117/158] drm/amd/display: check TG is non-null before checking if enabled