Fixed handling of path filter which was always removed when respect_navroot
is set to False.