sidebar: Do not select unrealized menu items

Current GTK+ does not like this and will emit a warning in the best
case or block all events in the worst one.

https://bugzilla.gnome.org/show_bug.cgi?id=675704