imap: error check on search results in fetchMessage