Revert "Fix completion_tried condition when pop up menu is visible."

This reverts commit bdc84ca53519a31dc1dd838baffd7d777515918e.