fix shouldEncrypt() method and improved decryptAll() unit tests
Merge pull request #8382 from owncloud/enc_fix_decrypt_all

fix shouldEncrypt() method and improved decryptAll() unit tests