Slightly different patch to fix the auto save cart functionality for anonymous user reported by Mirko on OFBIZ-5157.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1459220 13f79535-47bb-0310-9956-ffa450edef68