Movie sets never use actual live bullets. But they do use dummy bullets sometimes (to show loading or unloading). And if a piece of one of those is still in the barrel when a blank goes off it becomes a real bullet. That's what happened to Brandon Lee and may have happened here.
Seems like a pretty simple fix would be to say that no prop gun that touches a dummy bullet ever touches a blank. Maybe even rig them ahead of time somehow so that it's impossible to load one in the other.