Fixed the ImapIdle logic
Fixed the ImapIdle sample in cases where the Inbox is initially empty