Update select2.js

Fix an exception when called "destroy" on a still opened dropdown.

(Fix tickets #2366)