better error handling for ajax responses.
fix for multiple imap server caches