Raise exception if imap.search returns typ != 'OK' in _check_email

I had difficulty debugging errors caused by bad inputs to Wait For Mail. It's better to throw an exception when the IMAP server responds with an error.

Exception message includes returned data and input cirterion in
exception for debugging.