Fixed JBPAPP-7824 DeliveringCount and MessageCount can go negative, prevented now

Only decremented delivery count in valid cases