Fix crash when exporting SKOS file