dropdown: more accurate check of dropdown __switcher object

Fixes #1126