Bugfix: "None" not is a package

If fields toinstall, toremove, defaultpreinclude, defaultinclude and defaultexclude is null, it return "None"