Minor: remove extra empty document when expand and no target used at the same time
Issue #1984. Union() renamed to UnionAll()