Fixed a NPE I introduced in rev 1647606. Reported by Pierre Smits on dev mailing list.

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