At the end of the seventh book, Harry Potter and the Deathly Hallows, Harry uses the Elder Wand to repair his own broken wand.
‘I know it’s powerful,’ said Harry wearily. ‘But I was happier with mine. So ...’
[...] He laid the broken wand upon the Headmaster’s desk, touched it with the very tip of the Elder Wand and said, ‘Reparo.’
As his wand resealed, red sparks flew out of its end. Harry knew that he had succeeded. He picked up the holly and Phoenix wand, and felt a sudden warmth in his fingers, as though wand and hand were rejoicing at their reunion.
In the movie, Hermione presumably disposed of Harry's wand after revealing that his wand was broken, after Harry said
It's done. At the end of Deathly Hallows Part 2, Harry simply destroys the Elder Wand, with no mention made of his old one.
Was there any explanation for the change in the ending (of Harry's wand)?