Fixed #23300 -- TestCase.assertTemplateUsed passes erroneously on an HttpResponse

Thanks zags for the report and bmispelon for the patch