[PATCH OLK-5.10] drm/amd/display: Check null pointers before using them