REVIEW: NEXUS-6495 gaurd np error page rendering

https://issues.sonatype.org/browse/NEXUS-6495