still try to encrypt files, even if the session is not initialized. The stream wrapper will throw an error which is better than silently continue.
throw exception if private key is missing
Merge pull request #11954 from owncloud/enc_stop_uploading_if_private_key_is_missing

Enc stop uploading if private key is missing