Check order exists in wc_clear_cart_after_payment()

Fixes #6649