Remove firstRejected function
[Performance] Short-circuit short-circuiting.

If you know that the promise got short-circuited, stop the resolution
process.
Lint.