tools: update stability index linking logic
Fix logic that prevents stability index text from linking to itself.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
documentation is changed or added -
commit message follows commit guidelines