RenderAssets on RouteNotMatchErrors/ 404 Dispatch-Errors

If an dispatch.error occurs, the Module::renderAssets is not triggerend, and the view shows layout without css and javascript assets.

I added the layout template to the 404 template.
<?php $this->layout()->setTemplate('layout/layout.phtml'); ?>