Reset transclusion / file caches to {} instead of undefined

Fixes crasher in production on template / file update.

Change-Id: I986584334abbd13eb937d107ed825be034e0713e