Fix potential double error notification when offline