fixes showing the filters panel when a layer is missing from the portal database. Removed unused layer/showLayerByItsId