Fixed exception when imap inbox could not be selected

E.g. because label does not exist
Fixes "imaplib.error: command SEARCH illegal in state AUTH, only allowed in states SELECTED"