Adds support for portletDestroyed() and allows subclasses of MenuBar and TabSheet.