Fixed a bug in rev 1585033. Reported by Gareth Carter on the dev mailing list.

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