Avoid NPE.

REPL view can be missing.
(At all other call sites result of getProjectREPL call
is checked for null.)