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/DesignElement.java
else if ( parent == this )
		{
			throw new ExtendsException( this, extendsName,
					ExtendsException.DESIGN_EXCEPTION_SELF_EXTEND );
		}
		else if ( parent.isKindOf( this ) )
		{
			throw new ExtendsException( this, parent,
					ExtendsException.DESIGN_EXCEPTION_CIRCULAR );
		}
	}
	/**
	 * Gets the value of a property as an integer.
	 * 
	 * @param propName
	 *            the name of the property to get
	 * @param module
	 *            the module
	 * @return the property value as an integer. Returns 0 if the property is
	 *         not defined, or cannot convert to an integer.
	 */
	public int getIntProperty( Module module, String propName )
	{
		ElementPropertyDefn prop = getPropertyDefn( propName );
		if ( prop == null )
			return 0;
		PropertyType type = MetaDataDictionary.getInstance( ).getPropertyType(
				prop.getTypeCode( ) );
		Object value = getProperty( module, propName );
		if ( value instanceof Integer )