Testing if the dropdown is opened before call positionDropdown

Even with a closed container within the orientation, resizing and scrolling events, the positionDropdown was called, showing the container although closed.