Fix broken search in the singlehtml versions

Fix the search in singlehtml versions.
See https://forge.typo3.org/issues/60838