Empty shards wreck havoc. Forbid empty shards.

Also: bug fix: ask src.size, not pipeSrc.size()
Fix HadoopPipelineTest by reading from a new source.