Fixes #787 - Added guards in CartEndpoint to protected against NullOrderImpl along with null from CartState