Bug 1480290 [wpt PR 12266] - [client-hints] Detect errors to avoid timeouts, a=testonly