Merge "Catch json.loads exceptions in verify_device_metadata"