[JENKINS-17050] Close pop-up menu when clicking outside.

The _activationButtonPressed get's set to false when _onMouseUp is called, so can not be used to decide if the menu is active or not.