Fix authenticated/connected functions after node-imap udpate.