Solve the crash in CocoStudioComponentsTest.

When a component release it's owner node in method Component::update(), there will be a crash in the method ComponentContainer::visit().