Helpful error if AllowUncrypted is set to false.

Fixes ZEN-9524.