Make sure an empty <ul> container is not output if the group has no tags

Fixes #4