Fixed empty menu entries and error output, fix for Issue #2988

Recent Ubuntu's (12.10 and later) give DBusMenuExporterPrivate::addAction errors on adding the same action multiple times. 13.04 does not add the duplicate item to the menu (causing all menus in magics to be empty except one). Fixes Issue #2988.