Added null pointer checks to avoid crash.

A couple of basic checks to avoid some crash cases. These are:
 - There is no manifest in the .jar file.
 - The file that was attempted to be scanned is not actually
   a .jar file.

This should be considered a temporary patch. This code base
has been marked for refactoring / rework.