[promise] Return early in case of an error...

...in Promise.all and Promise.race