Properly set XMPP connection errors.
Review Request #1491 — Created June 2, 2022 and submitted
This fixes a regression from /r/1358/.
Connected and disconnected an XMPP account. Made sure the account was connected, then quit and relaunched, saw an error about signing in from another location, but then it reconnected properly.