drm/amd/display: add null check
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: add null check
[WHY] Prevents null pointer dereferences to enhance function robustness
[HOW] Adds early null check and return false if invalid.