guard against empty frequency table in UI