Don't crash if we don't have the containment is not initialized when we set the visibility mode to the parent