Fix null reference when using var without initializer in repl mode