Fix an unlikely case in cmd_to_string () where cmds would be accessed uninitialized.