get_public_base_url promises the URL only when it is shareable, else
None, but yarl.URL raised ValueError on a value such as "http://[invalid",
so invite and notification rendering failed instead of omitting the link.
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>