Fix `DoubleRenderError`s on 404s

This was introduced in 9a8b6978a95fa25cc2a8f3503927c9f8e229fe46.