AUS-2548:Streamline the portal UI: fix issue when removing custom wms layer and data remains on map.