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

Add check to see if the layer has identified features before executing clearMapPoopups and clearMapSelection

<!---
@huboard:{"order":180.0,"milestone_order":185,"custom_state":""}
-->