Fixed #6992 -- Improved error when middleware omits HttpResponse.

Thanks guettli for the report.