Added 404 redirection for empty lists