fix removeMenuDivider()
Merge pull request #6333 from adobe/randy/remove-menu-divider

Code looks good.  Easier to understand than my fix.  Merging...