style: Move one-off checks out of the recursive invalidation function.
style: Move one-off checks out of the recursive invalidation function.

There isn't a need to pay the cost for them multiple times.

Bug: 1372068
MozReview-Commit-ID: 3K2mRcWTheJ

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