GEOS-5618: app-schema joining wrongly groups nested children to the first feature if using getID()