Bug 66425: Avoid exceptions found via poi-fuzz Prevent a few NullPointerException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66400