correct comment getNextDoc (closes #4292)