A new study shows that questioning the certainty of self-doubt can help people recommit to long-term goals after setbacks.