Make sure not to add empty mime types when importing/exporting
When building with assertions this crashes since empty strings are not
accepted. The native kra import/export plugins only have one of the
types set though, so they would add an empty mime for the opposite
direction (import vs export).