Thanks, great catch! Fixed per
https://github.com/discourse/discourse/pull/6602
Technical details: primary group is updated with a direct SQL query, but the change title logic is in an ActiveRecord callback. This did not impact the “primary group” admin UI because that was updated with AR.