Fix unhandled rejection on route change in dev (#31554)
Fix unhandled rejection on route change in dev (#31554)

This ensures we properly catch the rejection on route change failure in development so the dev overlay doesn't flash with the unhandled rejection. A test case isn't able to be added for this specific scenario as the unhandled rejection is fired right before the page is navigated so we can't consistently check if the rejection was unhandled or not. 

## Bug

- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

Fixes: https://github.com/vercel/next.js/issues/28560

azukaru/next.js,JeromeFitz/next.js,zeit/next.js,JeromeFitz/next.js,JeromeFitz/next.js,JeromeFitz/next.js,zeit/next.js,zeit/next.js,azukaru/next.js,azukaru/next.js,azukaru/next.js