Cannot read property 'scrollIntoView' of undefined

https://sentry.gitlap.com/gitlab/gitlabcom-clientside/issues/31701/

Cannot read property 'scrollIntoView' of undefined
TypeError: a[0] is undefined
  at list (./merge_request_tabs.js:296:12)
...
(1 additional frame(s) were not displayed)

As reported by @rspeicher, https://gitlab.slack.com/archives/C0GQHHPGW/p1495636218455726

I think it's because it's an anchor link to a discussion that's not on the diff