prevents empty items when creating an outgoing delivery
adds test for #231: prevents empty items in outgoing deliveries