SONAR-5878 Fix regression on deep multi-module projects after previous change