Fix for bug #37417: Work around situations with incomplete class loaders that don't report package information. Submitted by: Timothy Gates <tgates.at.xplantechnology.com>