revert the removal of the logic concerning the first page
Merge branch 'FixPageRequestWhenDocIdIsNull' into integration