[NEXUS-7558] Resolve XSS issue with error pages
Simplify error page handling
Minor tweaks to ensure mvn: protocol is active as soon as possible