repl: Also ignore local imports with specified symbols (#54982)
Otherwise it's trying to find the `.` package, which obviously doesn't
exist. This isn't really a problem - it just does some extra processing
and loads Pkg, but let's make this correct anyway.