Fixed issue creating cart for user where items array was not set and JS error caused trying to populate items for cart when user is not logged in.