If metadata contains invalid layer name, when trying to add the layer to...

... the map, it shows a wms layer selection window