Update moog_IMAP.js

Ensure fromHost is always a string