I think we can wait on `pagePromises[pageNumber-1]`: https://github.com/Snuffleupagus/pdf.js/blob/d43fdf23d0153786f46ef3f3da242a51f1d972c7/web/viewer.js#L1432-Lundefined. Then we don't need `whenPagePromiseResolvedNavigateTo`.