bug/172/popups-hide-on-any-layer-being-hidden

Add check to see if the layer has identified features before executing clearMapPoopups and clearMapSelection