Handle missing templates in with and template; render ctx fix