Fixes: #2181 Fixed mailAccount constructor when no main tab