Fix bug related to saving empty order if items are not ordered before save