Fix regression in BasePage due to changes in page construction for bottom script injection