Added guard condition to draw_wordcloud() to prevent race condition

Without the guard condition, draw_wordcloud() would sometimes try to
draw the wordcloud before the wordcloud data had been loaded.