Cover empty documents
Do not save null values
return emptyDocsError when docs is empty
FoldManager: guard against empty doc