Added the ability to attach HTML fragment to DOM and then to call
RenderResult::getWidget() to get the first widget that was rendered.