Fixed bug where creating an account without a client_id wouldn't
redirect correctly afterwards.

Clients with empty ID strings are handled correctly when generating
activation emails.

Creating accouts in subdomains with and without clients now works.

[#82406674, Fixes #83898390]