Handle empty inbox scenario.

Fetching message 0 causes the wait_for_new_emails loop to fail.
Contrive a test.

…I'm getting my feet wet with this stuff.