Fixes issue when selecting permalinks that exists in multiple namespaces (site trees). Resolves issue #182