Only attempt to hide the dropdown if it's showing