Why didn’t Harry feel the Cruciatus curse in Deathly Hallows?

Here is the part I’m talking about:

“You see?” screeched Voldemort over the tumult. “Harry Potter is dead by my hand, and no man alive can threaten me now! Watch! Crucio!”

Harry had been expecting it: knew his body would not be allowed to remain unsullied upon the Forest floor, it must be subjected to humiliation to prove Voldemort’s victory. He was lifted into the air, and it took all his determination to remain limp, yet the pain he expected did not come.

Why didn’t he feel the pain? I know when he sacrificed himself he invoked the same protection magic his mother did, so does it protect him too? Or does it have something to do with Harry being the master of the Elder wand?