Fixed badge details so that if the badge is not published it will redirect the user to the 404 page