CRM-14978 related cleanup

The "crm-option-edit-link" has special properties that might crash js if not used on a "real" option-edit link that is actually associated with a *select* element.
Also cleaned up an unused variable.