Avoid an ugly error when zero tasks are spawned
Merged from master
Added a test for the case of no sources
Merge pull request #1474 from gem/zero-tasks-spawned

Avoid an ugly error when no tasks are spawned