0.8dev: Prevent internal error rendering an error page and `mainnav` is not in `req.chrome['nav']`. Refs #667.


git-svn-id: https://svn.apache.org/repos/asf/bloodhound/trunk@1528323 13f79535-47bb-0310-9956-ffa450edef68