Selectmenu Tests: add unit tests for empty options
Menu: Add _isDivider method

Ability to prevent generation of dividers from items

Fixes #9701
Selectmenu: Fix empty option processing

Ref #9701