Unselect layer in catalogtree when removed in layer manager

This PR unselect a given Layer when it is removed from the map from elsewhere (e.g. the layer manager).

Note: I'm using the same filter here as in the layermanager to determine if the layer should be considered. This filter should probably be part of gaLayers service in order to avoid duplication of code. I'll adress that in another PR.