fixing broken tag form

Backporting.

This should resolve issues with tags reported in https://github.com/will-moore/openmicroscopy/commit/3de7aaaa74d25ba88772e3fb379f59b735a5436b#comments