fix(engine): spin variable value deserialization

- return null when the variable value was not instantiated yet and
  getValue() is called outside of a command context

related to CAM-2435