fix(compiler-sfc): handle transformed template AST after cache invalidation (#15136)