Fixes #5322: Update 'hasPolicyServers' when uodate dynamic groups

I think you should merge it there, and make a new PR for 3.0