Register a variable-select event to the ontology popup that disables the action when a variable is added

Reviewer: Dan Jao
Issue: GCP-9462