Input (grade 9): The spell fails because Harry, not Voldemort, had become the Elder Wand's true master and the wand could not harm its own master.
Output (grade 10): In the next chapter, "The Flaw in the Plan", it is established that Harry, not Voldemort, became the Elder Wand's true master.