null pointer check for corpora in facets