Fix incorrect access of context for -Dvar definitions.

When a variable is defined in the command line using '-Dvar', an
exception occurs. This is because the code accesses the context
dictionary using the 'name' variable instead of the 'value' variable.