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

fix shouldEncrypt() method and improve decryptAll() unit tests. 

\OCP\App::isEnabled() will return false if the app is not enabled, even if it was loaded temporarily, e.g. for the decryptAll() method. Now we will just check if the encryption session was initialized successfully.

This is only a regression in master, releases are not affected.