Update the displayed text in TextField after password has been enabled.

I would assume that the textfield immediately gets obfuscated/de-obfuscated when setPassowordMode is enabled/disabled. This is a fix for issue #1397.