Fix bug where searching for the same word twice caused error.
Fix bug where searching for the same word twice caused error.

xuejianhai/riak_search,basho/riak_search,wwezhuimeng/riak_search,xuejianhai/riak_search,wwezhuimeng/riak_search,basho/riak_search