Fix wpsc_refresh_cart_items() not refreshing cart items.

For issue #1611

Check if $wpsc_cart->cart_items is an array (rather than object) before looping through cart items.