Auto merge of #13755 - fhartwig:early-return, r=KiChjang
Auto merge of #13755 - fhartwig:early-return, r=KiChjang

Invert conditional and return early from report_pending_exception

<!-- Please describe your changes on the following line: -->
Previously, almost the entire body of `report_pending_exception` was in a conditional branch. We now return early if the function body does not need to be executed.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #13746 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because they don't add any new functionality.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13755)
<!-- Reviewable:end -->

cbrewster/servo,ConnorGBrewster/servo,DominoTree/servo,emilio/servo,peterjoel/servo,emilio/servo,saneyuki/servo,dsandeephegde/servo,splav/servo,KiChjang/servo,peterjoel/servo,anthgur/servo,nnethercote/servo,sadmansk/servo,rnestler/servo,dati91/servo,saneyuki/servo,ConnorGBrewster/servo,dati91/servo,DominoTree/servo,avadacatavra/servo,KiChjang/servo,sadmansk/servo,thiagopnts/servo,notriddle/servo,KiChjang/servo,mbrubeck/servo,peterjoel/servo,larsbergstrom/servo,notriddle/servo,sadmansk/servo,saneyuki/servo,mbrubeck/servo,splav/servo,dsandeephegde/servo,peterjoel/servo,cbrewster/servo,dsandeephegde/servo,paulrouget/servo,upsuper/servo,szeged/servo,eddyb/servo,eddyb/servo,paulrouget/servo,splav/servo,dsandeephegde/servo,DominoTree/servo,anthgur/servo,jimberlage/servo,notriddle/servo,paulrouget/servo,notriddle/servo,notriddle/servo,nnethercote/servo,ConnorGBrewster/servo,ConnorGBrewster/servo,jimberlage/servo,paulrouget/servo,ConnorGBrewster/servo,mattnenterprise/servo,peterjoel/servo,pyfisch/servo,pyfisch/servo,rnestler/servo,CJ8664/servo,eddyb/servo,paulrouget/servo,paulrouget/servo,paulrouget/servo,canaltinova/servo,pyfisch/servo,saneyuki/servo,thiagopnts/servo,KiChjang/servo,jimberlage/servo,anthgur/servo,splav/servo,SimonSapin/servo,KiChjang/servo,sadmansk/servo,jimberlage/servo,eddyb/servo,thiagopnts/servo,rnestler/servo,nnethercote/servo,DominoTree/servo,upsuper/servo,mbrubeck/servo,canaltinova/servo,avadacatavra/servo,upsuper/servo,sadmansk/servo,eddyb/servo,emilio/servo,SimonSapin/servo,saneyuki/servo,mattnenterprise/servo,pyfisch/servo,ConnorGBrewster/servo,DominoTree/servo,paulrouget/servo,peterjoel/servo,szeged/servo,SimonSapin/servo,avadacatavra/servo,nnethercote/servo,avadacatavra/servo,cbrewster/servo,mbrubeck/servo,splav/servo,sadmansk/servo,avadacatavra/servo,emilio/servo,dati91/servo,anthgur/servo,pyfisch/servo,pyfisch/servo,avadacatavra/servo,upsuper/servo,SimonSapin/servo,fiji-flo/servo,saneyuki/servo,KiChjang/servo,CJ8664/servo,emilio/servo,thiagopnts/servo,larsbergstrom/servo,emilio/servo,jimberlage/servo,fiji-flo/servo,pyfisch/servo,thiagopnts/servo,canaltinova/servo,eddyb/servo,notriddle/servo,jimberlage/servo,anthgur/servo,larsbergstrom/servo,splav/servo,KiChjang/servo,szeged/servo,eddyb/servo,peterjoel/servo,CJ8664/servo,SimonSapin/servo,jimberlage/servo,fiji-flo/servo,DominoTree/servo,cbrewster/servo,nnethercote/servo,CJ8664/servo,DominoTree/servo,paulrouget/servo,larsbergstrom/servo,dsandeephegde/servo,sadmansk/servo,dsandeephegde/servo,mattnenterprise/servo,mattnenterprise/servo,upsuper/servo,thiagopnts/servo,nnethercote/servo,splav/servo,notriddle/servo,DominoTree/servo,peterjoel/servo,mbrubeck/servo,notriddle/servo,mattnenterprise/servo,nnethercote/servo,szeged/servo,dati91/servo,splav/servo,fiji-flo/servo,dsandeephegde/servo,saneyuki/servo,szeged/servo,paulrouget/servo,CJ8664/servo,rnestler/servo,canaltinova/servo,canaltinova/servo,mattnenterprise/servo,emilio/servo,rnestler/servo,dsandeephegde/servo,saneyuki/servo,upsuper/servo,larsbergstrom/servo,avadacatavra/servo,mbrubeck/servo,cbrewster/servo,canaltinova/servo,mbrubeck/servo,fiji-flo/servo,KiChjang/servo,DominoTree/servo,nnethercote/servo,dati91/servo,jimberlage/servo,jimberlage/servo,fiji-flo/servo,pyfisch/servo,anthgur/servo,szeged/servo,szeged/servo,dati91/servo,CJ8664/servo,upsuper/servo,fiji-flo/servo,dati91/servo,notriddle/servo,thiagopnts/servo,saneyuki/servo,KiChjang/servo,notriddle/servo,mbrubeck/servo,larsbergstrom/servo,mattnenterprise/servo,canaltinova/servo,anthgur/servo,dati91/servo,anthgur/servo,larsbergstrom/servo,saneyuki/servo,larsbergstrom/servo,splav/servo,KiChjang/servo,peterjoel/servo,cbrewster/servo,canaltinova/servo,SimonSapin/servo,peterjoel/servo,splav/servo,nnethercote/servo,fiji-flo/servo,CJ8664/servo,ConnorGBrewster/servo,larsbergstrom/servo,emilio/servo,larsbergstrom/servo,rnestler/servo,nnethercote/servo,pyfisch/servo,DominoTree/servo,rnestler/servo,szeged/servo,upsuper/servo,avadacatavra/servo,rnestler/servo,thiagopnts/servo,mattnenterprise/servo,pyfisch/servo,cbrewster/servo,cbrewster/servo,szeged/servo,emilio/servo,SimonSapin/servo,emilio/servo,eddyb/servo,szeged/servo,sadmansk/servo,CJ8664/servo,SimonSapin/servo,ConnorGBrewster/servo