If textures is packed inside blend file, then exporter will fail. This happens when trying to fetch filepath from texture_slot.texture.image If I figure out how to fix it, I will.