EventHistoryQuery: make `hostgroup' joinable

refs #4474
Pass the params directly to the query

refs #4474