Remove unbound variable warnings

Remove unbound variable warnings that were resolved at runtime
These four lines of code, starting from ``ResetForDeltaExecution()``, are exactly same as in ``CompileAndExecuteForDeltaExecution(string code)``. We may think about combine these two functions to remove this duplication .