A Bendixson-Dulac theorem for some piecewise systems