dropdown: more accurate check of dropdown_switcher

Fixes #1126