UI: fix JS bug when sending unencrypted mail