Improved speed and robustness of word cloud creation code

Notice that further optimization to this code is makes no sense until we improve the timing on the SOLR response.  For a set of 500 documents, the word cloud computation takes ~ 1sec, while the retrieval of the SOLR response (with termVectors enabled) takes ~ 35 sec.