When the promise is rejected, onFulfilled should not be called.