Fix joinPromises for Promise<void>.