17554 removing grouping not saved on existing queries

[``* `#17554` Removed grouping is not saved on existing queries``](https://community.openproject.org/work_packages/17554)