#242 - breaks when exporting with empty optionset - removed initial patch (friendly error message)