Fix expectations around script fields as a consequence of https://github.com/elasticsearch/elasticsearch/pull/8592.