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

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