Fix REPL crash caused by returning undefined when `def`ining a var