nouveau/tests: fix null dereference

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27442>
1 file changed