Fix crash when an unsupported cipher is configured.