mapfishapp: more robust handling of incoming WMS server URL - closes #104