fix NPE when getting package for class not in a package. Resolves issue
#39.
Merge pull request #40 from itewk/master

Resolve issue #39.