[PATCH 6.10 175/482] drm/amd/display: Check null pointers before using them