[osx] only check GeditWindow-s for getting active window
Do not try hiding a non-existing side stack switcher

The side stack switcher is set to NULL in the window dispose, but
the side panel stack children can still change numbers when panels
are being removed in the dispose chain up.