Fix bug where the MailboxManager is not created after login, causing a crash