Added sanity check to mime parsing
Added sanity check to mime parsing

Tried to access undefined object, so we check for that before proceeding. Empty response from an empty query will return mime parts, but they would be empty, so this code would fail in those situations. This shouldn't happen anymore.
Vladinator89/sharepoint-batch,Vladinator89/sharepoint-batch