Improve error message when JarFile encounters a compressed nested jar

Closes gh-1643