yes, have checked "ERROR" generation. This happens because `part_multipart_headers_cmp()` try search content by "Content-Id". The first content element (SDP in the example) does not have "Content-Id". Function reaches the end of the content element and generates the error.
Then `part_multipart_headers_cmp()` try search "Content-Id" in second element and fount it and then returns result.
Looks as current `part_multipart_headers_cmp()` implementation handles case when content element do not has "Content-Id" header as error. Looks as provided fix correct for this case.