Fixes a bug which slipped in with r1589869. Thanks to Jacopo who spotted him, related to OFBIZ-5223 and OFBIZ-5224

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