Fixed scrolling to last page + preloading problem for small pages
Merge pull request #3353 from nicolaasmatthijs/documentpreviewFollowup

Documentviewer fixes