Fix bug with empty tag categories