Solve multiple search icon clicks breaks function

Noticed that there were unexpected results when you clock multiple times
on the tag search icon.  Fixed the issue by checking to see if element
was active before initializing everything.