Fixed E500 being thrown when league is None.