Hermione stealthily gave a twist of her wrist and nonverbally cast a body bind curse on Bellatrix so that even if she did wake up she couldn't make a run for it or alert anyone else to her surprising survival.