Fix 'Message has not been send. Discard it?' on opening the key manager

Fixes #34