nfsd: fix null dereference on error path