Checking route paths to prevent exception when there are multiple domain...

...s applied to the root node