Fix for #3900 and an improvement for SetText().

I broke hasHintText() in https://github.com/paymand/appium/commit/1f051be698cc51f0343cb07e68f8ed75ab3b67cd. This is fix for the regression reported as #3900.