Remove usage of unused package in npmalerets.js
Add fallback for empty dependencies and devDependencies