make sure the intermediate index.html files are generated consistently Upstream-commit: 148e081ded30425d4e9dbafe93191722b314ad93 Component: engine