merge from 2.0.x - fix the IAE when valueClass is null, in some strange cases

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