Who hasn't heard the saying "There are no atheists in a foxhole"? It's a sounbite argument meant to show that when you're in one of the worst possible situations it's God that you will turn to for help. The fact of the matter is that there are in fact atheists in the armed forces, but it doesn't end there.
Who hasn't heard of the Miracle on the Hudson in which a quick thinking and logical pilot was able to land a plane by focusing on the task at hand? Since then there have been other plane crashes in which God simply chose not to intervene. One recently involved the death of seven children. In fact there is even the case of a pilot stopping to pray instead of following emergency procedures. This resulted in the death of 16 people. He has since been sentenced 10 years in jail.
Just another reason why the analogy fails completely.