PackageFile: correct inverted NULL check. Fixes #10817. CID 1211989.