better handling for invalid `url` stanzas
Merge pull request #6965 from rolandwalker/url_corner_cases

better handling for invalid `url` stanzas