Don't redirect to the first page that comes along when no id is given

Fixes: #26155

The problem is the same as in https://github.com/bednee/cooluri/pull/2 and https://forge.typo3.org/issues/26155, please read my detailed explanation there.