code: def pop_pending_if_empty(self, element):
          
          actions = self.state[self.state['current_step']]['actions']
          elem = self.current_target().tree
          if actions[-1][0] == ('target') and actions[-1][1].tree == elem:
              actions.pop()
              actions.pop()
              actions.pop()
docs: Remove empty wrapper element.