Updated TableFormatter so as not to create cell format if table is empty