Fix #660. Fix search when no taxonomies exist.

Also fixes search weight for slugs.