Fix template crash on pull requests in the repo dashboard