fix set-resolved

Previously it would not handle objects with no `from` and no
    `resolved`. i.e. `{ version: "0.2.4" }`.

Now it will normalize those

cc @kumikoda @iproctor