All cars do this from time to time, the engine management has to cope with a huge variation in ambient, and engine parameters and things can get a little confused.. Idle control is a very complex subject though....
That said, cleaning all the throttle body and connections is a wise move anyway.