From memory, for Palmer's caution the whistle went just after the goalkeeper had released the ball - it should be pretty exceptional circumstances for a referee to play advantage when a team are in their own defensive third, and I don't think the referee was wrong for stopping play to caution...