Prevent template renderer from rendering error (#14646)
Prevent template renderer from rendering error (#14646)

When there is a panic during template rendering unrolled/render
will automatically render the error. This leads to the
panic being displayed in the page and not a 500 page

Fix #14467
Fix #14525

Signed-off-by: Andrew Thornton <6a547fdd28db89120bdd70d4af1f9ba672ccd43a@cantab.net>

cez81/gitea,go-gitea/gitea,vdbt/gitea,cez81/gitea,cez81/gitea,go-gitea/gitea,vdbt/gitea,go-gitea/gitea