Update select2.js

fixed destroy
Fixes #2434 Tagging support allows creation of tags that are only whitespace
Testing if the object exists before use it

It's necessary to make the code compatible with IE8 and IE9.