Ensuring cart exists when creating orders

MINT-1832
Merge pull request #7 in MINT/php-checkout from MINT-1832-updating-checkout-example-for-empty-carts to v1.2

* commit 'e64fa5ba1ea23b6e6277668f07b8259d6a8a4dda':
  Ensuring cart exists when creating orders