Fix for geofence webapp not respecting kml and other geoserver profiles.

See https://github.com/georchestra/georchestra/issues/564 for details
Merge pull request #576 from jesseeichar/master

Fix for geofence webapp not respecting kml and other geoserver profiles.