fix KeyError: 'basket' in CartView