Fixes the error discussed in #8693 about `using B<tab>` before `Pkg.init()` fails