Hi
While clicking on Select2 control, it tries to destroy the control and thus
it doesn't get this object sometimes and throws error.
It should attempt to destroy the select2 object only if this object is not
undefined.
Adds proper check to handle the case.
Please find minor patch and review.
Thanks
Surinder Kumar