Corrected Navbar elements being displayed incorrectly on custom 404 & 500 pages