Yes Maxim, your patch fixes the problem. But there remains an issue: Errors on subrequests (e.g. 404) result in the inclusion of the error pages in the main page. I.e. in the body of the main page there starts a new html document with the error message. Regards Hannes