ZipReader: add a couple of null and bounds checks