added check to only apply server url correction to long enough wms layers since it was matching the tms pattern as well.