Fixed bug when package.json dependencies is not defined