Guard against empty `package.repository.type`

Fixes displaying `undefined` like in https://npmjs.org/package/crdt.