Added cleanup migration for `<head>undefined</head>`.

A migration script to clean up broken heads.