lib: Fix cockpit-components-terminal to unregister onResize event listener
lib: Fix cockpit-components-terminal to unregister onResize event listener

If the Terminal component is unmounted, corresponding onResize event
handler is unregistered as well.

Reviewed-by: Peter <a316049dd34607c62d4611d63ab22a6454add223@redhat.com>

SotolitoLabs/cockpit,cockpituous/cockpit,andreasn/cockpit,mareklibra/cockpit,cockpituous/cockpit,deryni/cockpit,martinpitt/cockpit,Scribery/cockpit,stefwalter/cockpit,stefwalter/cockpit,moraleslazaro/cockpit,Scribery/cockpit,deryni/cockpit,petervo/cockpit,andreasn/cockpit,garrett/cockpit,moraleslazaro/cockpit,deryni/cockpit,Scribery/cockpit,cockpituous/cockpit,Scribery/cockpit,martinpitt/cockpit,mvollmer/cockpit,petervo/cockpit,cockpituous/cockpit,Scribery/cockpit,martinpitt/cockpit,martinpitt/cockpit,mareklibra/cockpit,Scribery/cockpit,SotolitoLabs/cockpit,deryni/cockpit,andreasn/cockpit,SotolitoLabs/cockpit,cockpit-project/cockpit,mareklibra/cockpit,mareklibra/cockpit,deryni/cockpit,cockpituous/cockpit,mvollmer/cockpit,garrett/cockpit,garrett/cockpit,stefwalter/cockpit,deryni/cockpit,andreasn/cockpit,stefwalter/cockpit,moraleslazaro/cockpit,mvollmer/cockpit,petervo/cockpit,moraleslazaro/cockpit,cockpit-project/cockpit,Scribery/cockpit,cockpit-project/cockpit,SotolitoLabs/cockpit,cockpit-project/cockpit,SotolitoLabs/cockpit,petervo/cockpit,mareklibra/cockpit,petervo/cockpit,stefwalter/cockpit,andreasn/cockpit,petervo/cockpit,cockpituous/cockpit,petervo/cockpit,cockpit-project/cockpit,deryni/cockpit,andreasn/cockpit,mvollmer/cockpit,stefwalter/cockpit,moraleslazaro/cockpit,andreasn/cockpit,martinpitt/cockpit,moraleslazaro/cockpit,stefwalter/cockpit,moraleslazaro/cockpit,mareklibra/cockpit,garrett/cockpit,mareklibra/cockpit,mvollmer/cockpit,SotolitoLabs/cockpit,garrett/cockpit,SotolitoLabs/cockpit