Fix to return 404 with error when no dashboard found