Fixes #5178: undefined getGlobal('_viewRenderer') error if compile cache is used