MainWindow: Add back main_window

We use this for the launchers
ItemEditor: Fix validity check
ItemEditor: Make sure that we have a valid Exec line

Otherwise, gnome-menus / gio will ignore it.