Make .select2-tags JS handler more robust.