Fix crash when package name is None