Fixed some search query parsing issues.

We were getting Stack Overflow on each search that contained quoted phrase as it's part (e.g. aba "caba" daba) due to the infinite recursion bug. Fixed it. Also the management of hyphened words was a bit buggy: they were not counted as the base-points for recursion, so  every search for e.g aba-caba would never get parsed. And some minor fixes like array-out-of-bounds in phrase-search, that only contained stop-words (e.g a-a-a).