Hotfix generate alias in select mode

Here are some fixes, required for the "generate alias" button from the select mode.
This depends on the PR https://github.com/contao/core/pull/7114