WMS provider: protect from simple redirect loops in GetCapabilities

See http://hub.qgis.org/issues/3457