Fix Promise.all not working on empty iterable.