BibFormat: fix snippets for phrase queries

* Displays correctly snippets for phrase queries.
* Corrects highlighting of only whole words.
  (closes #1201)

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>