Stop processing if user taps 'x' before page loads.

* Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=966372

Change-Id: I54fb02fac2cc68eab3cd12db4233605a5ce12ca2