Only emitting online events if the app was offline first