fixes #11882, double connect issue in dojox.image.ThumbnailPicker