The function returns a copy of the flag container with the modification.
The behaviour of the job is unchanged as the ID code contains a fall-back to call CloneAndReplace itself if not done by the signature code. Hence not flagging as bugfix.
cc @vippolit, @yoyamagu