[contextmenu] don't show duplicate context menu items

Fixes issues with duplicate items in context menus (e.g. duplicate "Check for updates" items for repositories).

An alternative would be to overwrite the entry if found (in case we're using the same button id for a different string).

@Montellese mind taking a look?