repl: don't crash if self is not in replMap
Checklist
-
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
repl
Description of change
Fixes: https://github.com/nodejs/node/issues/7716
This fixes an undefined referenced. I am still trying to figure out why the undefined reference is occurring though, so marking as WIP.