Jonas and Fisher (J. Pers. Soc. Psychol. 91, 553; 2006) conduct three different studies that find that people emphasizing intrinsic religious beliefs (emphasizing meaning and value) are more buffered against thoughts of mortality when reminded of dying (news of terrorist attacks) than people who emphasize extrinsic religios beliefs (searching for safety and solice).
Their complete abstract: "Terror management theory suggests that people cope with awareness of death by investing in some kind of literal or symbolic immortality. Given the centrality of death transcendence beliefs in most religions, the authors hypothesized that religious beliefs play a protective role in managing terror of death. The authors report three studies suggesting that affirming intrinsic religiousness reduces both death-thought accessibility following mortality salience and the use of terror management defenses with regard to a secular belief system. Study 1 showed that after a naturally occurring reminder of mortality, people who scored high on intrinsic religiousness did not react with worldview defense, whereas people low on intrinsic religiousness did. Study 2 specified that intrinsic religious belief mitigated worldview defense only if participants had the opportunity to affirm their religious beliefs. Study 3 illustrated that affirmation of religious belief decreased death-thought accessibility following mortality salience only for those participants who scored high on the intrinsic religiousness scale. Taken as a whole, these results suggest that only those people who are intrinsically vested in their religion derive terror management benefits from religious beliefs."