Let set() to define an empty variable with parent scope

BUG: 335803