FIX: Escaped `mailto` URLs would raise an exception (PR #10827)

This prevents exceptions from being raised if a URL has an invalid component.

GitHub