core/commands2: Fixed 'add' output adding an empty object