Skip invalid package.json files

We had problems with invalid package.json files due to network failures etc. This caused npm install to completely fail. This path skips invalid package.json files but reports these errors to the console.