Fix crashing on repository homepage.