Force of habit and French blunders save Wales