A patch from Shi Jinghai for "Infinite loop in SEO branch" https://issues.apache.org/jira/browse/OFBIZ-5312

Thanks to Josip Almasi for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23@1644653 13f79535-47bb-0310-9956-ffa450edef68