menu applet: fix for context menu not being closed when the very next
category selection is recent or places.  Some other cleanup as well.