Dropdown menu is not rendered if there is only one item in group

Small change to template which checks if there is only one item in group. If so the dropdown menu is not rendered and you can directly click on the link.

I've made this pull request to help with usability as future admins do not have to do two clicks and some mouse manipulation in case that there is only one item in the group.