[PATCH RESEND] drm/nouveau: fix a possible null pointer dereference