If the mantis is a young nymph, I think it has a decent chance of surviving two bad back legs. I've had L3s/L4s with bad back legs molt fine, and they fixed their legs in the next molt. However, old nymphs, especially subadults, have a lot more trouble, as they're heavier and seem unable to grip...