reapply Cmd value even if CmdAdd returns early
Docker-DCO-1.1-Signed-off-by: Maximilian Goisser <goisser94@gmail.com> (github: hobofan)
Merge pull request #5436 from hobofan/master

reapply Cmd value even if CmdAdd returns early