yes, I added some checks and if no url can be created the result is removed. For the project we tested the implementation for we have "banner blocks" appearing in the result, for these we added some extra logic to find the page they belong to and then try to add that url to the search result.