Bug 136241 [regression]Preview template in web viewer and pdf didn't get correct effect.
Description: Preview template items in web viewer and pdf didn't get correct effect. Steps to reproduce: 1. Create template items. 2. Preview in Web Viewer and pdf. Expected result: Same effect as in html. Actual result: In web viewer, see only blank box. In pdf, blank page.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/ContentCommand.java
private void doReplace( DesignElement oldElement, DesignElement newElement,
			int slotID, boolean unresolveReference ) throws SemanticException
	{
		assert newElement.getContainer( ) == null;
		
		ElementDefn metaData = (ElementDefn) element.getDefn( );
		if ( !metaData.isContainer( ) )
			throw new ContentException( element, slotID,
					ContentException.DESIGN_EXCEPTION_NOT_CONTAINER );
		SlotDefn slotInfo = (SlotDefn) metaData.getSlot( slotID );
		if ( slotInfo == null )
			throw new ContentException( element, slotID,
					ContentException.DESIGN_EXCEPTION_SLOT_NOT_FOUND );
		if ( !slotInfo.canContain( newElement ) )
			throw new ContentException( element, slotID, newElement,
					ContentException.DESIGN_EXCEPTION_WRONG_TYPE );
		
		if ( element.isContentOf( newElement ) )
			throw new ContentException( element, slotID, newElement,
					ContentException.DESIGN_EXCEPTION_RECURSIVE );
		if ( slotID == Module.COMPONENT_SLOT )
		{
			if ( StringUtil.isBlank( newElement.getName( ) ) )
				throw new ContentException( element, slotID, newElement,
						ContentException.DESIGN_EXCEPTION_CONTENT_NAME_REQUIRED );
		}
		
		ContainerSlot slot = element.getSlot( slotID );
		if ( !slot.contains( oldElement ) )
			throw new ContentException( element, slotID, oldElement,