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