#124461# add checks for nested depth and entry indices

Patch By: awf, hdu


git-svn-id: https://svn.apache.org/repos/asf/openoffice/branches/AOO410@1582668 13f79535-47bb-0310-9956-ffa450edef68