OAK-2038: Invalid type error while importing DocView xml data
Applied slightly edited version of Amit's patch

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