Mend broken facets when searching to get a document count