Call the BeforePageDisplay hook before adding HTML

This is correct to begin with, and in particular, it allows
showing Compact Personal Bar to users who enabled it,
showing ULS, and so on.

Change-Id: I2e4a2359eada93125f0b3062080161d3b63112e4
Merge "Call the BeforePageDisplay hook before adding HTML"