[IMAPx] Do not connect to the server in offline mode

One cannot do remote operations when in offline mode, which may
include the server not being reachable.