Fix issue reported on the forum (http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=19041)

Usually, TGObjects are equal if they have the same window identifier. But when the TGObjects have not been created by the Window manager (e.g. a TGLVEntry), then we have to use the default TObject equal comparison