Provide required context and disable layout
Merge pull request #242 from mozilla/middleware-error-rendering-fixes

Provide required context and disable layout