Prevent publish attempts of 0 messages.