Fixed #19949 -- Cached template loader now caches TemplateDoesNotExist

https://code.djangoproject.com/ticket/19949 Thanks @timgraham @jdunck for the code reviews. Thanks Kronuz for the bug report and initial code patch.  :+1: