Based on Adrian's comment on Dev list removing the ternary operator check which was not needed actually. 

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