Fix leak in NanAssignPersistent