The latest Window should be the last one of getWindowHandles() returns
Merge pull request #1895 from bigfei/fix-navToView

The latest webview should be the last element of getWindowHandles() returns