Stoner takes podium despite difficult race