Fix attachments encryption.

Do not show files when note is not decrypted.
Fix handling when mcrypt module is not loaded.