Catch and handle the exceptions generated by the JSON file reading for tools/build.py.