fixing a bug in the encrypt dialog for Internet Explorer.
Internet Explorer 11 does not support pubKeySelect.selectedOptions.length