Fix NoneType error when trying to update cart quantities