The scripts in asset bundles are now registered in `View` at the end of `endBody()`. It was done in `endPage()` previously
Fixes #2310