Fix regression in generating urls from a pattern and a parameter map