Don't send an empty batch
Add extra parametter for the doc manager
Add assert for the parametter length
Fix launch of the initial import