drm/nouveau/kms/nv50: add null check before pointer dereference