Handles the case when there is no package

A class being proxied is allowed to not have a package with this change.