NULL out the nvlist pointers so we don't free an invalid pointer if
we hit an error.