refactor: Move minimalMode checks earlier in conditionals (#102004)
`app-page-runtime.ts` gates a bunch of behavior on `minimalMode`, or
lack thereof (i.e. `next start`). This refactor moves those checks to
happen earlier in the conditionals, so that it's easy to see if a
codepath is skipped.