Fixed the crash when there's no valid mail account settings.