Added checkup on deadnodes when publishing messages.