Fix textfield duplication check

Textfields should never contain other textfields

Fix https://github.com/appium/appium/issues/3217