That scene is straight from the book. I believe Aragorn actually carries Frodo for a while believing him dead.
You're right, but the book gives the impression that Frodo was knocked unconscious. The long drawn out expiring process shown in the film was misleading. At least that's the impression it left with me.