Don't recalculate viewport until before-first-paint is emitted

Otherwise the engine keeps recalculating viewport of a reloading web page for every META tag it meets. And may end up with a wrong viewport if correct frame metrics get clobbered by outdated data from earlier iterations.