Grad school can be treacherous ground for your faith. Here’s how to keep your beliefs from crumbling.