Ramiro/refix 19949: 1-line quickfix. 

I found a 1-line solution: 
 
`self.template_cache[key] = TemplateDoesNotExist`. 

When removed, the last test fails, and when added, the last test finally passes. 

As always, I welcome feedback.