Defensively preventing auto-scroll when the page view count less than 2
Made sure to unregister an open file path even if no handle is available. Resolves http://redmine.anghami.com/issues/70609