Fix `Frontend::getRootIdFromUrl()` (see #6035)