Fix discarding of edit contents when clicking links in Preview.

Also fixes opening new pages from external Intents.

Bug: 66186
Bug: 66194
Change-Id: Ie83637c973e69a06280fb6901f928851511fb1d3