Added a test on empty documents in bulk indexing.