minor: Move code around for setting link id/text/class.
minor: Move code around for setting link id/text/class.

We don't need to compute these vars if we early exit.

brainwane/zulip,timabbott/zulip,rht/zulip,andersk/zulip,tommyip/zulip,synicalsyntax/zulip,rishig/zulip,rht/zulip,synicalsyntax/zulip,showell/zulip,synicalsyntax/zulip,eeshangarg/zulip,tommyip/zulip,rht/zulip,zulip/zulip,kou/zulip,hackerkid/zulip,synicalsyntax/zulip,andersk/zulip,shubhamdhama/zulip,dhcrzf/zulip,showell/zulip,eeshangarg/zulip,punchagan/zulip,andersk/zulip,rishig/zulip,andersk/zulip,rishig/zulip,eeshangarg/zulip,brainwane/zulip,hackerkid/zulip,zulip/zulip,timabbott/zulip,rishig/zulip,shubhamdhama/zulip,punchagan/zulip,eeshangarg/zulip,hackerkid/zulip,showell/zulip,rishig/zulip,punchagan/zulip,timabbott/zulip,eeshangarg/zulip,kou/zulip,dhcrzf/zulip,tommyip/zulip,brainwane/zulip,shubhamdhama/zulip,andersk/zulip,rht/zulip,hackerkid/zulip,showell/zulip,zulip/zulip,eeshangarg/zulip,brainwane/zulip,kou/zulip,timabbott/zulip,zulip/zulip,shubhamdhama/zulip,timabbott/zulip,kou/zulip,brainwane/zulip,dhcrzf/zulip,rht/zulip,tommyip/zulip,synicalsyntax/zulip,kou/zulip,zulip/zulip,hackerkid/zulip,tommyip/zulip,andersk/zulip,dhcrzf/zulip,dhcrzf/zulip,punchagan/zulip,synicalsyntax/zulip,zulip/zulip,timabbott/zulip,kou/zulip,punchagan/zulip,rht/zulip,dhcrzf/zulip,rishig/zulip,tommyip/zulip,dhcrzf/zulip,punchagan/zulip,rishig/zulip,kou/zulip,synicalsyntax/zulip,showell/zulip,timabbott/zulip,rht/zulip,andersk/zulip,brainwane/zulip,zulip/zulip,shubhamdhama/zulip,eeshangarg/zulip,brainwane/zulip,hackerkid/zulip,hackerkid/zulip,showell/zulip,tommyip/zulip,shubhamdhama/zulip,punchagan/zulip,showell/zulip,shubhamdhama/zulip