Fix early binding Layout to document.body.