Only call dump when a ViewRoot actually exists

Bug: 11446494
Change-Id: I47e35d7b4d49d6893ba0c9f8ad05b31f91be85d2
1 file changed