Bug Fixes in Office
Do not try to set a resource if the selection changes on deletion
With some versions of Qt, deleting a list widget changes the selection,
and that can cause a crash if we're trying to set the newly selected
item on an already delete KoCanvasResourceProvider.
So, make sure that the KoResourceItemChooser and KoResourceItemView disconnect
themselves completely on teardown.