Added error handler to accessVar

Added a local error handler that will report an error when a local variable is not found on the stack.