SI-6017 Scaladoc: Fix dangling links on index.html

As @heathermiller and @VladUreche commented in #1861, I removed <a> and use <span> instead when there is no page to link to.