Fixed bug of saving table tool with empty datasource