Handle invalid dependency syntax less badly

I had a package where the dependencies where setup in a wrong way but
still valid json like: "dependencies": [ {"underscore": ">=1.1.7"} ]
which will result in npm not beeing able to install any further
packages.  Make it more failsafe.