Currently, if the action you wish to use is removed or becomes unavailable right before you click the selected action, you are guaranteed to click an action you did not want.
A possible fix would be to de-select the action if it becomes unavailable, and only select the previous/next available action (relative to the position of the removed/disabled action) when the user moves his mouse wheel up/down.