imap: nil checks if connection was not created