Fix wmsserver: Do not manipulate maplayerregistry directly