base: DocumentUI: fix a few issues handling remote content

http://jira.omnirom.org/browse/OMNI-956
http://jira.omnirom.org/browse/OMNI-950

Change-Id: I8d50d71a9c91486dfc9e5da01538c6b5a626f054
Merge pull request #1 from omnirom/android-4.4

base: DocumentUI: fix a few issues handling remote content