Nowhere in those panels is contradicted what the user of the Kage Kage himself explained about how his powers work. It's not a coincidence that for the good guys to return the shadows it was required that Moria killed the zombis himself in order to devour the now bodyless shadows to a point he couldn't keep them in and Luffy could force him to throw them up.
The only way for a shadow assigned to a body to return to its original owner was Moria giving the order. Beating him up or even killing him wouldn't work; if anything, it would require to beat him hard enough to force the order out of his mouth out of weakness (which is a scenario Moria reflected on too and is what that random, ignorant pirate in your panels would mean, if anything). Hence why Oda had to find a way for Luffy to achieve this without Moria commanding it —and this way needed that, by the time Moria was defeated, no zombi existed in Thriller Bark anymore.
Seriously, don't contradict manga facts. If Moria had been killed during the Nightmare Luffy beat up no shadow would have been returned.