this makes sure cachedTemplate[src] is a function before calling it with jade, it could blow up otherwise.