The code would previously crash trying to insert a NULL string into a hash table. It does seem a little broken that indexing is done by MIME type and not by index though, unless the spec says there cannot be two parts with the same MIME type. https://bugzilla.gnome.org/show_bug.cgi?id=659573