Bug 692780 - Crash under ews_get_attachments()

Maybe not a real fix for this, but I cannot reproduce it, thus I added
a bit more thread-safety to the code and an ensure to not access
uninitialized memory in the future.