Fix the implementation of ViewTarget::GetRoot() and add tests.

BUG=431047
R=sky@chromium.org

Review URL: https://codereview.chromium.org/740473002