Tolkien deliberately removed references to prayer and religion in his fantasy world to avoid two potential traps: by showing a fictional religion, he would risk contradicting his faith; by explicitly loading scenes of Christian prayer into his fantasy, he would undermine the quality of the fiction with "allegory," thus undermining his own message by making it unpalatable to audiences.
What I am referring to when I talk about the spirit of Christianity that infuses LotR is not any explicitly allegorical meaning, but -- following Tolkien's own quotes to this effect -- different pieces that are left here and there in the text.
For example, for Christian readers of Tolkien, different aspects of Christ are typically understood to be found spread across the figures of Frodo, Gandalf, and Aragorn. Other Christian elements in the text include Gandalf's advice to Frodo to spare Gollum, and the fact that his mercy is ultimately what saves the quest; Gandalf's return from the dead, reborn and cloaked in the kingly majesty of white; the lore of Sauron as a fallen elf, tying him to the devil, who is also referred to as "the enemy" in Christianity; the way the ring gives earthly power but drains the soul, whereas sacrifice and hardship seem hopeless at the time, but have true power in the end, etc.
If you want a pretty good idea of a believer's perspective on this, there's a fairly good article by Ignatius Insight [1], but I don't know how persuasive it will be to someone who rejects the underlying premises.
[1] http://www.ignatiusinsight.com/features2005/pkreeft_christlo...
The entire story of LotR is of people either obeying or defying a divine command, delivered through an angel, to sacrifice apparent immediate self interest to defeat a fallen angel and his followers.
Plenty of stories in the Bible don’t deal so much with ritual religious observance by the characters was with following (or not) moral rules and/or response to divine emissaries (there are stories where religious observance in the more quotidien ritual sense is center-stage, but also plenty where it is entirely, or almost entirely, off-stage.)
There might be something in the Silmarilion that backs up your interpretation but I don't think it's in Lord of the Rings.
There's definitely Christian morality at play in LOTR, but everything I've read from Tolkien's letters says that the works were not meant to be an allegory or based on Christianity. If you're going to apply Christian themes to LOTR, you might as well hit up Homer's works as well. It's a work by a Christian, not necessarily a work about Christianity.
Whatever Tolkien may have said privately- virtually every character comes across as not having a religion. None of them prey to God when in danger.
People are responding to the books Tolkien wrote, not what he said he wrote.