fix bug: if a phrase (in query) not appear in any document, next doc
should return null (not found anywhere).