#92464TYPO3 Upgrade fails with exception on slug population
Description
Upgrading from v8 to v10 and executing the PopulatePageSlugs upgrade causes this exception:
"Uncaught TYPO3 Exception: Argument 1 passed to TYPO3\CMS\Core\Database\Query\Restriction\WorkspaceRestriction::__construct() must be of the type int, null given"
The stack trace reveals that BackendUtility::getRecordLocalization is responsible.
It accesses the current BE user’s workspace, when there is not BE user.