The cause of the bug, where a rejected promise will not go to the next promise in the PromiseQueue.