[CamelFolder/Store] Check online state of the session too before connecting

The code tested only network service and offline store descendants,
but anything else was always connected when needed, which wasn't good
when the CamelSession was in the offline mode.