drm/amd/powerplay: fix bug that NULL checks are reversed.