Fixed handling of empty parts in multipart messages