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/core/Module.java
else
			module.theme = null;
		
		if ( libraries != null )
		{
			for ( int i = 0; i < libraries.size( ); i++ )
			{
				module.libraries = new ArrayList( );
				Library lib = (Library) ( (Library) libraries.get( i ) )
						.clone( );
				lib.setHost( module );
				module.libraries.add( lib );
			}
		}
		else
			module.libraries = null;
		
		IElementDefn defn = module.getDefn( );
		for ( int i = 0; i < defn.getSlotCount( ); i++ )
		{
			ContainerSlot slot = module.getSlot( i );
			if ( slot == null )
				continue;
			for ( int pos = 0; pos < slot.getCount( ); pos++ )
			{
				DesignElement innerElement = slot.getContent( pos );
				buildNameSpaceAndIDMap( module, innerElement );
			}
		}
		return module;