NPE when handling corrupt jar files