Perhaps the export script could be expanded to detect when the model was not unwrapped and a texture has been assigned; notifying the user. Or perhaps the assigned texture should be ignored if the model has not been unwrapped. Or at the most basic level, a more accurate error when a crash occurs because of this reason, to prevent further problems with future users.