Fix mark as finished when a publication reaches stock=0