Fixed equality test for query rows whose value is 'doc'

Regression from the emit-doc optimization (03454e8)