Fix linking objects on search pages

Issue #2976

Page for testing:
/search/gene/dpy-

Currently broken on live (http://www.wormbase.org/search/gene/dpy-) where the locus text is removed completely from the gene descriptions.

Wasn't creating link when there was no taxonomy associated with the page.