Bug 327933 Unrendering container with invalid selectedElement can cause target element to be unrendered
bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/PartRenderingEngine.java
if (!removed.isToBeRendered())
					return;
				if (removed.getWidget() instanceof Control) {
					Control ctrl = (Control) removed.getWidget();
					ctrl.setLayoutData(null);
					ctrl.getParent().layout(new Control[] { ctrl },
							SWT.CHANGED | SWT.DEFER);
				}
				if (renderer != null)
					renderer.hideChild(changedElement, removed);
			}
		}
	};
	private IEclipseContext appContext;
	protected Shell testShell;
	protected MApplication theApp;
	@Inject
	@Optional
	protected IEventBroker eventBroker;
	@Inject
	EModelService modelService;
	@Inject
	protected Logger logger;
	private Shell limbo;
	private List<MUIElement> renderedElements = new ArrayList<MUIElement>();
	private MUIElement removeRoot = null;
	@Inject
	public PartRenderingEngine(
			@Named(E4Workbench.RENDERER_FACTORY_URI) @Optional String factoryUrl) {