Fix NPE when facet root not in module content root or in another module.

#WT-46 fixed work 1h