When we use a phrase like 'it serves him right', we are, in part, admitting that a certain set of circumstances has enabled justice to act of its own accord.
However, I have said that the conscious mind is but a small portion of the whole self, and the information thus received through dreams is automatically acted upon or assimilated, regardless of conscious cognition.