Fix the locations count for dependencies
Fix the number of locations from the group query which is different from those coming from the locations finder. The number of locations no include null path/unknown path as well for locations.
Before
After
Related to #424205 (closed)
Edited by Subashis Chakraborty