Fix a case where a random topic with null slug will be rendered instead of 404