bugfix: remove class only if tagInput defined

tagInput variable not used inside forms of single input, only in forms
of multiple select