bugfix: cs doesn’t return `group_id` in thread info if it is null
fix NameError in `show_html` mgmt command
more CR fixups