application: Do not set app menu unless one exists
This causes an empty menu to appear in fallback mode, and in gnome-shell it causes the app menu to not appear, lacking even the standard Quit menu item.
Thanks to @aperezdc and @exalm for help with this.
Edited by Michael Catanzaro