Reported by @shark0der.
If the cache/solidity-files-cache.json file is broken (in his case it was because it was empty, which is an invalid JSON), then compilation fails.
When reading that file, we should detect if it's broken and remove it, which I think can always be done without issues.