interpret_nth_last_branch(): avoid traversing the reflog twice