Fix for issue report by @louisnayegon in issue #16 where bad logic would fail to compose multipart entity