correct comment getNextDoc (ref #4292)