Fixed a bug in error reporting when a comparison element has the same number of attributes, but no class.