The href attribute is empty, so it's a self-link.
Compare https://ca.wikipedia.org/wiki/Viquip%C3%A8dia_Discussi%C3%B3:Asdfasdfasdf (non-existent) with
https://ca.wikipedia.org/wiki/Viquip%C3%A8dia:Taulell_de_consultes
Root cause, not in buildEmptyResult.
Originally reported by @Betacommand against a private wiki.