if no emails after sync, log user out

fixes #1472
Merge pull request #3820 from seanmonstar/hotfix-1472-no-emails

if no emails after sync, log user out