Fix possible assertion in Executor.

We can get an exception in build() when there are already jobs running,
which was not the case originally. Adapt to this.

Change-Id: I6c10983f9635950d1597c2b34f1b885112f3877d
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>