Do not print empty group names (fixes #7)