Fix #660. Fix search when no taxonomies exist.
Also fixes search weight for slugs.
Merge pull request #666 from xiaohutai/master

Fix #660. Fix search when no taxonomies exist.