Fix uncaught exception trying to reinitialize tagsinput object

Related https://github.com/TimSchlechter/bootstrap-tagsinput/pull/90

Fixes an issue when a tagsinput is reinitialized. Also added tests to confirm.