Fixed JS error when trying to encrypt wallet in FireFox 24