fix 'unlogged' and 'unauthorized' error handling in
FrontendController::getPath()