Sitemap Route - Call to a member function representation() on boolean

I’ve been playing around with routes to get a sitemap going and there are quite a code-snippets to be found in the forum. While the original kirby sitemap tutorial would suit my needs, this as well as all others I’ve tried failed. I’ve had these kinds of things working before and could not find any informations about the error given…

Erroring out with:

Call to a member function representation() on boolean

Edit:
Never Mind, i had a typo in the url, the route is working, the representation error appears when there’s no existing page as well as no route - would need a fallback to go for error page…