Fix T23926 / extra semicolon in record breaks field detection

Caused by things like `&amp;`, see [0].

[0] https://phabricator.wikimedia.org/T23926