Fixed issue #8365: Error when accessing admin page