Fix adding separator to windows menu before non-document window.
Fix adding separator to windows menu before non-document window.

JackieXie168/skim,JackieXie168/skim,JackieXie168/skim,JackieXie168/skim,JackieXie168/skim