Thank you for asking your question on JustAnswer. A common problem on the 04 was a dirty throttle body and some cases a bad TB sensor.
Remove the inlet air tube from the Electronic Throttle Body (ETB). Using a suitable cleaner and brush, (a baby bottle brush works well for this) clean the ETB bore and plate as needed and recheck for proper operation. If condition continues, replace the Throttle Position Sensor (TPS) and reflash the Powertrain Control Module (PCM) per TSB 05-14-4.
I am encloseing the TSB for your review as well.