Added an error handler for lack of data in the template, moved creation
of the teamcache to before the match data that was getting errors