bug fix

The class of `packageData` is `String`, then usage like below:

```
if (!packageData.files) {
    packageData.files = [];
    console.log(packageData.files); // we still got undefined here.
}
```
actually does not work.