Fix for "demeteorizer crashes when encountering invalid package.json"

See: https://github.com/onmodulus/demeteorizer/issues/92