Don't use document.body

Can't be trusted, is null in some cases.

Bug: 52361
Bug: 53282
Change-Id: Ifb45718a29b8d3147be483349b30a4bc080604d6
Merge "Don't use document.body"