Fix to avoid failing if dependencies are not set

Currently tool gives error if package.json that is being tested
doesn't have dependencies field set. Error is caused by giving
undefined list to Object.keys.