Fixed error where the 404 page was not being displayed correctly due to a bad variable reference