add null check on ViewRootImpl

bug:6412902
Change-Id: I688a54731ed34283bc039a7967f472af131f458d
1 file changed