Do not add empty items to flags and categories