Fixes #8401: n+1 query on group parameters host edit

Hostgroup tries to eager load the group parameters but there's an error
in the code that renders the eager loading useless.