The current implementation of the findTopLevelResources method of the ResourceDAO class is not correct no matter if storeByForeignSource is enabled or not.
The reason is that it is not possible to make findNodeResources() and findNodeSourceResources() independent of each other without duplicating the effort on their implementations.
For this reason, the resource calculation must be performed once on the same method. That way, no matter if storeByForeignSource is enabled or not, the Top Level Resources are going to be listed only once.
This method is mainly used by Statsd and KSC Reports.
As a consequence, I found several inconsistencies on the KSC's JSPs.