viewer: Handle case where JSON is empty/corrupt file.