Display global issue link only if necessary

should fix #689
Style/EmptyLinesAroundBody: Extra empty line detected at body end.