Resolve issue #39.

fix NPE when getting package for class not in a package. Resolves issue #39.