Do not fire UIOffline when navigating away

Fixes #487