Fixed conditionals for 404 template