Admin page omits count data when a model count times out

https://sentry.gitlab.net/gitlab/gitlabcom/issues/590256/

RuntimeError: Missing model Group from count data
  count_helper.rb:7:in `approximate_count_with_delimiters'
    raise "Missing model #{model} from count data" unless count
  /opt/gitlab/embedded/service/gitlab-rails/app/views/admin/dashboard/index.html.haml:34:in `block in _app_views_admin_dashboard_index_html_haml__4049117147878127456_70294027129720'
    = approximate_count_with_delimiters(@counts, Group)
  action_view/helpers/capture_helper.rb:39:in `block in capture'
    buffer = with_output_buffer { value = yield(*args) }
  action_view/helpers/capture_helper.rb:203:in `with_output_buffer'
    yield
  action_view/helpers/capture_helper.rb:39:in `capture'
    buffer = with_output_buffer { value = yield(*args) }
...
(180 additional frame(s) were not displayed)

ActionView::Template::Error: Missing model Group from count data

ActionView::Template::Error: Missing model Group from count data
Edited by Stan Hu