Don't NPE on empty set of documents.