Fix timing of agent loading in live development

For #2858, make live development agents handle the loading of the real page corresponding to the current document (not the interstitial page).

@peterflynn