Enc stop uploading if private key is missing

If no unencrypted private key exists we throw a exception instead of continue silently. This can for example happen if the user reset his login password and didn't adjusted his private key password


fix #11926