Fixed #22756, added view name to technical 404 template when Http404
is raised by view and added tests.