[PATCH OLK-6.6] drm/amd/display: Check null pointers before multiple uses