Use a TitleWatcher to make test less flaky

In the IFrameUsingDocumentWriteShouldNotCrash test, sometimes the title
wasn't immediatly updated after navigation. The best choice is to make
use of a title watcher instead of directly comparing.