As far as I can see this is a good example of Confirmation Bias
Confirmation Bias is the idea that you have an Internal Theory, for example that there is /An all powerful and All loving God/, and that when you get experiences that might support this notion, for example a positive response to a Prayer, you confirm your Hypothesis.
However when a contrary indication is received: example, an urgent prayer seems not to be answered, you ignore it and don't see it as any kind of evidence that your
a) belief in God
b) belief in the Characteristics of your God
are perhaps mistaken.
Perhaps the best short and moving talk that I have seen on this matter is from Rev Tom Honey. So please take the time to watch his TED presentation.