Fix nursery variable deletion bug that prevents re-adding of same variable.

Issue: GCP-9796
Reviewer: Dan Jao