Fix to prevent using run-time compiling of assets (to support CDN)

Switch from run-time asset compilation to pre-compiling the error page html.