Injecting content into the `<head>` isn't safe. You'll just have to assume there's a `<body>`. (There will be.)