Fix for a bug for class selector in grid view

 This fixes a bug when two object folders start with the same letters, like "news" and "newsletter". Class selector will appear for "news" folder in grid view, although it only contains objects of one class as it will also take classes of "newsletter" folder.