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/PeerExtensionLoader.java
* 
	 * @param elementDefn
	 *            the element definition to handler
	 * @param methodInfo
	 *            the method info to add
	 * @return the generated property definition
	 * @throws ExtensionException
	 */
	private ExtensionPropertyDefn addDefnTo( ExtensionElementDefn elementDefn,
			MethodInfo methodInfo ) throws ExtensionException
	{
		ExtensionPropertyDefn extPropDefn = new ExtensionPropertyDefn(
				( (PeerExtensionElementDefn) elementDefn )
						.getReportItemFactory( ).getMessages( ) );
		PropertyType typeDefn = MetaDataDictionary.getInstance( )
				.getPropertyType( IPropertyType.SCRIPT_TYPE );
		String name = methodInfo.getName( );
		String displayNameID = methodInfo.getDisplayNameKey( );
		extPropDefn.setName( name );
		extPropDefn.setDisplayNameID( displayNameID );
		extPropDefn.setType( typeDefn );
		extPropDefn.setGroupNameKey( null );
		extPropDefn.setCanInherit( true );
		extPropDefn.setIntrinsic( false );
		extPropDefn.setStyleProperty( false );
		extPropDefn.setDetails( methodInfo );
		return extPropDefn;
	}
}