Applied fix by Deepak Dixit (OFBIZ-4493) to fix a class cast exception (after commit 1553890).



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