Fixed bug for instances with multiple rdf:types

Search for appropriate pb group for an individual would always return on first class,
even if that class has no group.