Use run-loop to enum projects in upstream_commits.html to avoid potential out of index error.

Hi, opera-devs

Thanks for this useful tools :), I use it to generate my chromium commits too.

There is a potential out of index error in the template html file(I faced this when I only generate one project commits). It hard codes the projects object. This patch is about fixing this.

I wish it would be helpful. Thanks!