Avoid empty cart to be persisted