Apply the select2 only when we have vocabularies in the form.
Merge pull request #6784 from openscholar/6780

Apply the select2 only when we have vocabularies in the form.