Avoid exceptions if scroller height is initially 0
Merge branch 'fix_negative_page_number'