Do not crash on malformed Bower json files

This fixes crash like this: `Exception caught:  { '0': [SyntaxError: Unexpected end of input] }`.

Ran across this analyzing  `.../node_modules/bower/node_modules/bower-json/test/pkg-bower-json-malformed/bower.json`.