ODE-989. Fix for intermittent IllegalArgumentExeption. Thanks Nandika for patch

git-svn-id: https://svn.apache.org/repos/asf/ode/branches/ode-1.3.5.x@1435778 13f79535-47bb-0310-9956-ffa450edef68