Fixes adding encryption keys to borgs

adding Encryption keys were not working on borgs. and also causing a run-time error. This should fix it.
Merge pull request #4572 from yashaldie/patch-1

Fixes adding encryption keys to borgs