I'd have to look at the weapon options for the DJM to know for sure.

I know with the mobs I tested on, if by chance the next mob spawned with the same weapon as the previous, the bug didn't occur, because the new weapon (which appears when combat is initiated) overwrites the old one. But if they are different, the mob ends up with both in its inventory.