Added null check for checking if package is sealed.