Correct XmlEmitter#models. Closes #3984.

It was broken by splitting out the table determination to `Contents`
in #3936.