Fix issue associated with other pages unable to scroll

After loading a page with an element having the no-scroll directive, other pages were not able to scroll when navigating to them.