Bug 163018 An error extension will lead the report contain chart can't be opened and can not new a report.
Details: An error extension will lead the report contain chart can't open In org.eclipse.birt.report.tests.model has an error extension. When run the birt use workbenck, the report contain chart can't be opened and it can not new a report.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/metadata/ElementDefn.java
if ( type == this )
			return true;
		if ( type == null )
			return false;
		ElementDefn obj = this.parent;
		while ( obj != null )
		{
			if ( obj == type )
				return true;
			obj = obj.parent;
		}
		return false;
	}
	/**
	 * Adds a slot to this element.
	 * 
	 * @param slot
	 */
	void addSlot( SlotDefn slot )
	{
		if ( slots == null )
			slots = new ArrayList( );
		slots.add( slot );
	}
	/**
	 * Sets the name space ID. Elements can have names. The names are placed
	 * into a name space on the report design. Different kinds of elements
	 * reside in different name spaces. The name space ID identifies which name
	 * space holds elements of this element type.
	 *