Fix reace condition in new KML output, test KML export of empty table