Fix line reference error

When issues exists on a previous commit (not the head commit)
the issue icon was rendering on the wrong line