Bug 66425: Avoid exceptions found via poi-fuzz Fix check after commit fcaac5073716b98cba26c0655f06f20e310fd85e so that other IndexOutOfBoundsExceptions are still thrown out Also free resources when throwing an exception in the constructor