Fix: Regression introduced with 86a0f41

86a0f41 introduced a regression for cases when `null === $path`.