diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc
index ac09475..75634d2 100644
--- a/core/includes/bootstrap.inc
+++ b/core/includes/bootstrap.inc
@@ -3046,7 +3046,7 @@ function arg($index = NULL, $path = NULL) {
   if (!isset($path)) {
     // @todo The public function current_path() is not available during early
     //   bootstrap.
-    $path = _current_path();
+    $path = drupal_container()->get('request')->attributes->get('system_path');
   }
   if (!isset($arguments[$path])) {
     $arguments[$path] = explode('/', $path);
