Fixes #8551 - host recieves correct smart_class_parameter value when multiple overrides in inherited Host Groups exist for parameter

rubocop didn't like the end bracket, it wanted it to be under the `sorted_lookup_values`