Only attempt to hide the dropdown if it's showing
Merge pull request #1277 from rbright/master

Only attempt to hide the dropdown if it's showing