Fix destroying of resource panel

beforeDestroy() is called directly from destroy() method, no need to add it as event listener. But it should call superclass method.

This is sensitive for the AjaxManager plugin.