A self-recovery approach to the probabilistic invariance problem for stochastic hybrid systems